/***********************************************************************
 * POJO Class :  SysOperation.java
 * Author:  Bill Vison
 * Purpose: Defines the Class SysOperation
 ***********************************************************************/

package org.vsg.security.model.domain;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@javax.persistence.Entity
@javax.persistence.Table(name = "sys_opera")
public class SysOperation implements java.io.Serializable,java.lang.Cloneable {


	
	public static final short PLATFORM = 0;
	 
	
	public static final short MENU = 1;
	 
	
	public static final short URL = 2;
	 
	@Column(name ="id")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)			
	private int id;
	 
	
	private String operation;
	 
	
	private String name;
	 
	@Column(name ="FLAG_TYPE")
	private short type;
	 
	
	private String description;
	 


	
	/**
	 * @param newId
	 */	
	public void setId(int newId) {
		id = newId;
	}
	
	public int getId() {
		return id;
	}	
	
	/**
	 * @param newOperation
	 */	
	public void setOperation(String newOperation) {
		operation = newOperation;
	}
	
	public String getOperation() {
		return operation;
	}	
	
	/**
	 * @param newName
	 */	
	public void setName(String newName) {
		name = newName;
	}
	
	public String getName() {
		return name;
	}	
	
	/**
	 * @param newType
	 */	
	public void setType(short newType) {
		type = newType;
	}
	
	public short getType() {
		return type;
	}	
	
	/**
	 * @param newDescription
	 */	
	public void setDescription(String newDescription) {
		description = newDescription;
	}
	
	public String getDescription() {
		return description;
	}	

}